package com.tsunami.user.feign;

import com.tsunami.base.R;
import com.tsunami.user.feign.fallback.UserResolveApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Classname UserResolveApi
 * @Description TODO
 * @Date 2021-11-02 17:06
 * @Created by lx
 */
@FeignClient(name = "",fallbackFactory = UserResolveApiFallback.class)
public interface UserResolveApi {
    /**
     * 根据id 查询用户详情
     */
    @PostMapping(value = "/user/anno/id/{id}")
    R getById(@PathVariable("id") Long id, @RequestBody UserQuery userQuery);
}
